//项目的根组件

//App -> index.js -> public/index.html(root)
const handleClick = () =>{
  console.log("按钮被点击了");
}
const handleClickByName = (name) =>{
  console.log("按钮被点击了",name);
}
const handleClickByNameEvent = (name,e) =>{
  console.log("按钮被点击了",name,e);
}
function App() {
  return (
    <div className="App">
      <button onClick={ handleClick }>click me</button>
      <button onClick={ () => handleClickByName('jack') }>click by name</button>
      <button onClick={ (e) => handleClickByNameEvent('jack',e) }>click by name event</button>
    </div>
  );
}

export default App;
